// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 引用修改过后的axios
import Axios from './common/axios'
import store from './store/index'


// //添加到vue原型链
Vue.prototype.http = Axios
Vue.prototype.$host = "http://localhost:3000"
Vue.config.productionTip = false
Vue.use(ElementUi)

// 兄弟传值
Vue.prototype.bus = new Vue
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
